package cn.sciento.transfer.domain.entity;

import io.choerodon.mybatis.annotation.ModifyAudit;
import io.choerodon.mybatis.annotation.VersionAudit;
import io.choerodon.mybatis.domain.AuditDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@ApiModel("分布式ID")
@VersionAudit
@ModifyAudit
@Table(name = "hdtt_distribution_id")
public class DistributionId extends AuditDomain {
  public static final String FIELD_BIZ_TYPE = "bizType";
  
  public static final String FIELD_MAX_VALUE_AVAILABLE = "maxValueAvailable";
  
  @ApiModelProperty("表ID，主键。全局ID")
  @Id
  @GeneratedValue
  private Long distributionId;
  
  @ApiModelProperty(value = "业务类型", required = true)
  private String bizType;
  
  @ApiModelProperty(value = "最大可用值", required = true)
  private Long maxValueAvailable;
  
  public Long getDistributionId() {
    return this.distributionId;
  }
  
  public void setDistributionId(Long distributionId) {
    this.distributionId = distributionId;
  }
  
  public String getBizType() {
    return this.bizType;
  }
  
  public void setBizType(String bizType) {
    this.bizType = bizType;
  }
  
  public Long getMaxValueAvailable() {
    return this.maxValueAvailable;
  }
  
  public void setMaxValueAvailable(Long maxValueAvailable) {
    this.maxValueAvailable = maxValueAvailable;
  }
}
